/*******************************************************************************
 * Copyright (c) 2011 TXT e-solutions SpA
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * This work was performed within the IoT_at_Work Project
 * and partially funded by the European Commission's
 * 7th Framework Programme under the research area ICT-2009.1.3
 * Internet of Things and enterprise environments.
 *
 *
 * Authors:
 *     Cristoforo Seccia (TXT e-solutions SpA)
 *
 * Contributors:
 *      Domenico Rotondi (TXT e-solutions SpA)
 *******************************************************************************/
package it.txt.access.capability.verifier;

/**
 *
 * @author Cristoforo Seccia (TXT e-solutions SpA)
 */
public class CapabilityVerifierErrorMessages {

    public static final String ISSUER_NULL = "The Capability's Issuers is undefined.";

    public static final String ISSUER_EMPTY = "The Capability's Issuers is empty.";

    public static final String RESOURCE_ID_NULL = "The Capability's Resource ID is undefined.";

    public static final String RESOURCE_ID_EMPTY = "The Capability's Resource ID is empty.";

    public static final String CAPABILITY_ID_NULL = "The Capability's Capability ID is undefined.";

    public static final String CAPABILITY_ID_EMPTY = "The Capability's Capability ID is empty.";
    
    public static final String ISSUE_ISTANT_NULL = "The Capability's Issue Istant is undefined.";

    public static final String ISSUE_ISTANT_INVALID = "The Capability's Issue Istant is invalid.";

    public static final String REVOCATION_SERVICES_NULL = "The Capability has undefined Revocation Services.";

    public static final String REVOCATION_SERVICES_EMPTY = "The Capability has empty Revocation Services.";

    public static final String ACCESS_RIGHTS_NULL = "The Capability has undefined Access Rights.";

    public static final String ACCESS_RIGHTS_EMPTY = "The Capability has undefined Access Rights.";

    public static final String VALIDITY_CONDITION_NULL = "The Capability has undefined Validity Conditions.";
    
    public static final String NOT_BEFORE_CONDITION_NULL = "The Capability's Not Before Date is undefined.";

    public static final String NOT_BEFORE_CONDITION_INVALID = "The Capability's Not Before Date is invalid.";

    public static final String NOT_AFTER_CONDITION_NULL = "The Capability's Not After Date is undefined.";

    public static final String NOT_AFTER_CONDITION_INVALID = "The Capability's Not After Date is invalid.";

    public static final String VALIDITY_CONDITIONS_INVALID = "The Capability has invalid time constraints.";

    public static final String PARSE_CAPABILITY_ERROR = "Error while recovering Capability has as a Document.";

    public static final String SIGNATURE_INVALID = "The Capability has an invalid Signature.";

    public static final String SIGNATURE_CHECK_ERROR = "Error while verifying Capability signature.";

    public static final String INNER_CAPABILITY_NULL = "The Capability has no Issuer Access Rights Capability Element.";

    public static final String INNER_CAPABILITY_INVALID = "The Capability has an invalid Inner Issuer Capability.";

    public static final String ISSUER_NOT_EQUAL_INNER_SUBJECT = "The Capability's Issuer is not the Subject of inner the Capability.";

    public static final String RESOURCE_ID_NOT_EQUAL = "The Capability's ResourceID is different from che Capability's chain.";

    //public static final String CAPABILITY_ID_NOT_UNIQUE = "An Access Rights Capability ID is not unique.";

    public static final String REVOCATION_SERVICES_NOT_EQUALS = "An inner Capability has different revocation services.";

    public static final String ACCESS_RIGHTS_INCOMPATIBLE = "The Capabilit Access Rights are not compatible from the Capability0s chain.";

    public static final String INNER_VALIDITY_CONDITIONS_INVALID = "The Capability has invalid inner time constraints.";

    public static final String ISSUER_NOT_EQUAL_SUBJETC = "The Capability's Issuer is not equal to the inner capability subject.";

    public static final String NO_ACCESS_RIGHTS_COPIED = "The Capability has no Access Rights Compatible to one inner Capability.";

    public static final String ACCESS_RIGHT_PERMITTED_ACTION_NULL = "The Capability has an unddefined Permitted action.";

    public static final String ACCESS_RIGHT_PERMITTED_ACTION_VALUE_NULL = "The Capability has an undefined Permitted action value.";

    public static final String ACCESS_RIGHT_PERMITTED_ACTION_VALUE_EMPTY = "The Capability has an empty Permitted action value.";
    
    public static final String ACCESS_RIGHT_PERMITTED_ACTION_NAMESPACE_NULL = "The Capability has an undefined Permitted action namespace.";

    public static final String ACCESS_RIGHT_PERMITTED_ACTION_NAMESPACE_EMPTY = "The Capability has an empty Permitted action namespace.";

    public static final String ACCESS_RIGHT_DELEGABLE_NULL = "The Capability has an undefined delegable element.";

    public static final String ACCESS_RIGHTS_DELEGABLE_EMPTY = "The Capability has no delegable access rights.";

    public static final String X509_SUBJECTS_INFO_NOT_FOUND = "Unable to recover the X509 Subject Info elements";

    public static final String X509_SUBJECTS_INCONSISTENT = "The Subject X509 Information are different from the information in the X509 certificate";

}
